<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>订单管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li><a href="${ctx}/mid/torderRquest/">订单列表</a></li>
		<li class="active"><a href="${ctx}/mid/torderRquest/formDetail?tId=${torderRquest.tId}">订单<shiro:hasPermission name="mid:torderRquest:edit">${not empty torderRquest.tId?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="mid:torderRquest:edit">查看</shiro:lacksPermission></a></li>
	</ul><br/>
	<form:form id="searchForm" modelAttribute="torderRquest" action="" method="post" class="breadcrumb form-search ">
		<ul class="ul-form">
			<li><label>平台订单号：</label>${tId}</li>
			<li><label>订单号：</label>${tOrderNo}</li>
			<li><label>收货人姓名：</label>${tClentName}</li>
			<li><label>身份证：</label>${tClentId}</li>
			<li class="clearfix"></li>
			<li><label>电话：</label>${tPhoneNo}</li>
			<li><label>创建时间：</label><fmt:formatDate value="${createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></li>
			<li><label>运单号：</label>${waybillNo}</li>
			<li><label>金额：</label>$${nTotalPrice}</li>
			<li class="clearfix"></li>
			<li><label>收货地址：</label>${tAddressProvince}${tAddressCity}${tAddressArea}${tAddressDetail}</li>
		</ul>
	</form:form>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>英文名</th>
				<th>中文名</th>
				<th>单价</th>
				<th>数量</th>
				<th>总价</th>
				<shiro:hasPermission name="mid:torderRquest:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page}" var="torderproduct">
			<tr>
				<td>
					${torderproduct.gEngName}
				</td>
				<td>
					${torderproduct.gChineseName}
				</td>
				<td>
					${torderproduct.nPrice}
				</td>
				<td>
					${torderproduct.nMount}
				</td>
				<td>
					${torderproduct.nTotalPrice}
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</body>
</html>